<div class="mt20 clearfix ng-scope ml25">
    <span class="fl lh30 f14">应收信息</span>
</div>
<div id="grid" class="table-wrap mt10 ml25" style="overflow: visible !important;min-height: 250px;">

    <table width="100%" class="valign-t">
        <thead>
        <tr>
            <th width="35">序号</th>
            <th>款项名称</th>
            <th width="60">合同属性</th>
            <th width="100">关联收入项</th>
            <th width="110">应收信息</th>
            <th width="70">收款责任人</th>
            <th width="80">云售前人员</th>
            <th width="135">金额信息</th>
            <th width="80">附加信息</th>
            <th width="55" class="align-m">付款条件</th>
            <th width="40" class="align-m">备注</th>
            <th width="92">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="record in receivableInfo.receivables" ng-if="record.__isdelete != 1">
            <td height="40"><p ng-bind="$index + 1"></p></td>
            <td class="lh14">
                <p ng-bind="record.receivable_item_name"></p>

                <p class="c-gray">款项小类:{{record.money_category_item_name}}</p>
            </td>
            <td>
                <p>{{record.receivable_type==1 ? '新增' : '续签'}}</p>
            </td>
            <td>
                <p ng-bind="record.revenue_type_name"></p>
            </td>
            <td>
                <p>应收金额:<br/>{{record.receivable_amount | number:2}}</p>

                <p>应收日期:<br/>{{record.performance_accounting_time|strdate:'yyyy-MM-dd'}}</p>
            </td>
            <td>
                <p ng-bind="record.payee_name"></p>
            </td>
            <td>
                <p ng-bind="record.unite_sales_name"></p>
            </td>
            <td>
                <p>已开票金额:{{record.billing_amount | number:2}}</p>

                <p>已收金额:{{record.received_amount | number:2}}</p>

                <p>未收金额:{{record.receivable_amount-record.received_amount | number:2}}</p>
            </td>
            <td>
                <p>是否坏账:{{record.is_bad_debt==1?'是':'否'}}</p>

                <p>运营关注项:{{record.is_operation==1?'是':'否'}}</p>
            </td>
            <td class="align-m">
                <a href="javascript:;" ui-tip ui-dialog-cache="false" template="{{record.payment_condition}}" >查看</a>
            </td>
            <td class="align-m">
                <a href="javascript:;" ui-tip ui-dialog-cache="false" template="{{record.remark || '无'}}" >查看</a>
            </td>
            <td>

            </td>
        </tr>
        </tbody>
    </table>
    <div class="no-data" ng-if="funds.length == 0" style="height:180px"><span>暂无数据</span></div>

</div>

<div class="ml25 mt10">
    <span class="pl10">说明：收入金额(<em class="b">{{contractBaseInfo| signOrIncomeAmount |number:2}}</em>元) = 已确定应收(<em
                class="b">{{receivableInfo.receivables|sumIncomeAmount|number:2}}</em>元) + 未确定应收(<em class="b c-red">{{ receivableInfo.receivables | remainIncomeAmount2:contractBaseInfo |number:2}}</em>元)</span>
</div>
